package com.itheima.sh.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/*
    降级处理类
 */
@RestController
public class FallbackController {

    @RequestMapping(value = "/fallbackTest")
    public Map<String,String> fallBackController(){
        Map<String, String> response = new HashMap<>();
        response.put("code","502");
        response.put("msg","服务超时");
        return response;
    }
}
